home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / ncurses-5.3 / ncurses / expanded.c < prev    next >
Encoding:
C/C++ Source or Header  |  2002-10-27  |  1.2 KB  |  28 lines

  1. /* generated by MKexpanded.sh */
  2. #include <curses.priv.h>
  3. #include <term.h>
  4. #if NCURSES_EXPANDED
  5.    void     _nc_toggle_attr_on (attr_t *S, attr_t at)
  6. {
  7.     { if (PAIR_NUMBER( at ) > 0) ( *S ) = (( *S ) & ALL_BUT_COLOR) | ( at ); else ( *S ) |= ( at );  ;} ;
  8. }
  9.    void     _nc_toggle_attr_off (attr_t *S, attr_t at) 
  10. {
  11.     { if (FALSE  == TRUE) { if (PAIR_NUMBER( at ) == 0xff) ( *S ) &= ~( at ); else ( *S ) &= ~(( at )&ALL_BUT_COLOR); } else { if (PAIR_NUMBER( at ) > 0x00) ( *S ) &= ~( at | (( ((1UL) << 8) - 1UL ) << (( 0 ) + 8 ))  ); else ( *S ) &= ~( at ); }  ;} ;
  12. }
  13.    int     _nc_DelCharCost (int count)
  14. {
  15.     return ((cur_term->type.  Strings[105]  != 0) ? SP->_dch_cost : ((cur_term->type.  Strings[21]  != 0) ? (SP->_dch1_cost *  count ) : 1000000 )) ;
  16. }
  17.    int     _nc_InsCharCost (int count)
  18. {
  19.     return ((cur_term->type.  Strings[108]  != 0) ? SP->_ich_cost : ((cur_term->type.  Strings[31]  && cur_term->type.  Strings[42] ) ? SP->_smir_cost + SP->_rmir_cost + (SP->_ip_cost *  count ) : ((cur_term->type.  Strings[52]  != 0) ? (SP->_ich1_cost *  count ) : 1000000 ))) ;
  20. }
  21.    void     _nc_UpdateAttrs (chtype c)
  22. {
  23.     if (SP->_current_attr != ( c )) vidattr(( c )); ;
  24. }
  25. #else /* ! NCURSES_EXPANDED */
  26. NCURSES_EXPORT(void) _nc_expanded (void) { }
  27. #endif /* NCURSES_EXPANDED */
  28.